package com.ljh.onlinetest.repository;

import com.ljh.onlinetest.domain.User;
import com.ljh.onlinetest.domain.other.KeyValue;
import com.ljh.onlinetest.viewmodel.admin.user.UserPageRequestVM;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author ljh
 * @ClassName UserMapper.java
 * @createTime 2021年12月30日
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    User getUserByUserName(String username);

    List<User> userPage(UserPageRequestVM requestVM);

    User getUserById(Integer id);

    List<User> selectByIds(List<Integer> receiveUserIds);

    List<KeyValue> selectByUserName(String userName);
}
